/*
 * @Author: malgee
 * @Date: 2025-04-23 13:35:30
 * @LastEditors: maling
 * @LastEditTime: 2025-04-23 13:37:39
 * @FilePath: /vue3-ts-cms/src/views/login/config/login.config.ts
 * @Description: 
 * 
 */
export const rules = {
  name: [
    {
      required: true,
      message: '请输入账号',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z0-9]{3,16}$/, 
      message: '账号格式不正确',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入密码',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z0-9]{6,16}$/, 
      message: '密码格式不正确',
      trigger: 'blur'
    }
  ]
}
